/**
 * @file		gpv.s
 * @brief		gpv setting
 * @note		None
 * @attention	None
 * 
 * <B><I>Copyright 2015 Socionext Inc.</I></B>
 */

//---------------------------------------------------------------
//   Condition Assenble Control
//---------------------------------------------------------------
	.text
	.section .INIT_GPV
    .align 2

//---------------------------------------------------------------
//   Define(s)
//---------------------------------------------------------------
	.equ	GPVBASE,				0x19000000
	.equ	GPV_NANDFLASH,			0x01
	.equ	GPV_SD1,				0x02
	.equ	GPV_SD3,				0x04
	.equ	GPV_PCIE,				0x08
	.equ	GPV_USB3,				0x10
	.equ	GPV_SD_RELC_HDMAC_USB2,	0x20
	.equ	GPV_NETSEC,				0x40

//---------------------------------------------------------------
// INIT_GPV
//---------------------------------------------------------------
	.type	init_gpv, %function
	.global init_gpv
init_gpv:
    PUSH	{r0-r2, lr}

	LDR		r0, = GPVBASE
	LDR		r1, = GPV_NANDFLASH | GPV_SD1 | GPV_SD3 | GPV_PCIE | GPV_USB3 | GPV_SD_RELC_HDMAC_USB2 | GPV_NETSEC
	STR		r1, [r0]

    POP		{r0-r2, pc}

	.end
